package com.tpu.bdclasses;
/**
 * @hibernate.class table="ticket"  
 */
public class Ticket {
	private int ticket_id;
	private int numbrplace;
	private int status;
	private KindOfTicket kot;
	private Event event;
	private TheatreOrder theorder;
	
	public Ticket(int id, int numbrplace, int status, KindOfTicket kot,
			Event event, TheatreOrder theorder) {
		super();
		this.ticket_id = id;
		this.numbrplace = numbrplace;
		this.status = status;
		this.kot = kot;
		this.event = event;
		this.theorder = theorder;
	}
	public Ticket(){}
	/**
	* @hibernate.many-to-one
	* column="id"
	*/
	public KindOfTicket getKot() {
		return kot;
	}

	public void setKot(KindOfTicket kot) {
		this.kot = kot;
	}
	
	/**
	* @hibernate.many-to-one
	* column="koe_id"
	*/

	public Event getEvent() {
		return event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}
	/**
	* @hibernate.many-to-one
	* column="order_id"
	*/
	public TheatreOrder getOrder() {
		return theorder;
	}

	public void setOrder(TheatreOrder deliver) {
		this.theorder = deliver;
	}

	
	
	 /**
	  * @hibernate.id generator-class="native" column="ticket_id"
	  */
	public int getTicket_id() {
		return ticket_id;
	}
	public void setTicket_id(int ticket_id) {
		this.ticket_id = ticket_id;
	}
	/**
     * @hibernate.property column="numberplace"
     */
	public int getNumbrplace() {
		return numbrplace;
	}
	public void setNumbrplace(int numbrplace) {
		this.numbrplace = numbrplace;
	}
	/**
     * @hibernate.property column="status"
     */
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	
}
